/*******************************************************************************
 * Copyright (c) 2011 Irineu Martins de Lima Moura (imlm2).
 * This file is part of JBeat.
 * 
 *     JBeat is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     JBeat is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with JBeat.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Contributors:
 *     Irineu Martins de Lima Moura (imlm2) - initial API and implementation
 ******************************************************************************/
package br.ufpe.cin.imlm2.jbeat.soot.icpoints.tags;

import java.util.HashSet;
import java.util.Set;

import soot.Trap;
import soot.tagkit.AttributeValueException;
import soot.tagkit.Tag;

/**
 * A tag to hold traps considered interconnecting points in a method's body.
 * @author Irineu
 *
 */
public class InterconnectingPointsTag implements Tag {
	
	public static final String TAG_NAME = "InterconnectingPointsTag";

	private Set<Trap> points = new HashSet<Trap>();
	
	public void addInterconnectingPoint(Trap t){
		this.points.add(t);
	}
	
	public Set<Trap> getInterconnectingPoints(){
		return (this.points);
	}

	@Override
	public String getName() {
		return TAG_NAME;
	}

	@Override
	public byte[] getValue() throws AttributeValueException {
		return null;
	}

}
